﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LS.Api.Models
{
    /// <summary>
    /// 工单信息
    /// </summary>
    public class OrderInput
    {
        /// <summary>
        /// 客户id
        /// </summary>
        public long CustomersId { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public long ProductId { get; set; }
        /// <summary>
        /// 优先级
        /// </summary>
        public string PriorityId { get; set; }
        /// <summary>
        /// 工单类型
        /// </summary>
        public string TypeId { get; set; }
        /// <summary>
        /// 计划开始时间
        /// </summary>
        public DateTime? ScheduleTime { get; set; }
        /// <summary>
        /// 备注说明
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 封面图片ID，多个逗号隔开
        /// </summary>
        public string FileIDs { get; set; }
        /// <summary>
        /// 视频ID，多个逗号隔开
        /// </summary>
        public string VideoFileIDs { get; set; }
        /// <summary>
        /// 负责人id,不填进入工单池
        /// </summary>
        public string InCharge { get; set; }
    }
    /// <summary>
    /// 回执实体
    /// </summary>
    public class ReceiptInput
    {
        /// <summary>
        /// 工单Id
        /// </summary>
        public long WorkorderId { get; set; }
        /// <summary>
        /// 回执内容
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 图片ID，多个逗号隔开
        /// </summary>
        public string FileIDs { get; set; }
        /// <summary>
        /// 视频ID，多个逗号隔开
        /// </summary>
        public string VideoFileIDs { get; set; }
        /// <summary>
        /// 签名图片，存图片地址或base64
        /// </summary>
        public string SignImgPath { get; set; }
        /// <summary>
        /// 服务项目
        /// </summary>
        public List<ReceiptItemInput> ServiceItem { get; set; }
        /// <summary>
        /// 折扣费用
        /// </summary>
        public decimal? DiscountCharge { get; set; }
        /// <summary>
        /// 服务总费用
        /// </summary>
        public decimal? TotalServiceCharge { get; set; }
    }
    /// <summary>
    /// 回执服务项目
    /// </summary>
    public class ReceiptItemInput
    {
        // <summary>
        /// 服务项目id
        /// </summary>
        public long ServiceId { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int? Quantity { get; set; }
    }

    /// <summary>
    /// 评价实体
    /// </summary>
    public class EvaluateInput
    {
        /// <summary>
        /// 工单Id
        /// </summary>
        public long WorkorderId { get; set; }
        /// <summary>
        ///服务满意度 字典 ENUM_DEGREESATISFACTION
        /// </summary>
        public string DegreeSatisfactionId { get; set; }
        /// <summary>
        /// 服务态度
        /// </summary>
        public string ServicesAttitudeId { get; set; }
        /// <summary>
        /// 服务效率
        /// </summary>
        public string ServicesEfficiencyId { get; set; }
        /// <summary>
        /// 服务质量
        /// </summary>
        public string ServicesMassId { get; set; }
        /// <summary>
        /// 服务标签 字典 ENUM_SERVICESTAGS
        /// </summary>
        public string ServicesTagIds { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }

    /// <summary>
    /// 拒绝实体
    /// </summary>
    public class RefuseInput
    {
        /// <summary>
        /// 工单Id
        /// </summary>
        public long WorkorderId { get; set; }
        /// <summary>
        /// 拒绝原因
        /// </summary>
        public string RefuseClassId { get; set; }
        /// <summary>
        /// 详细原因
        /// </summary>
        public string Remark { get; set; }
    }

    /// <summary>
    /// 接单实体
    /// </summary>
    public class AcceptInput
    {
        /// <summary>
        /// 工单Id
        /// </summary>
        public long WorkorderId { get; set; }
        /// <summary>
        /// 计划开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }
    }
    /// <summary>
    /// 工单查询实体
    /// </summary>
    public class QueryInput
    {
        /// <summary>
        /// 工单Id
        /// </summary>
        public long WorkorderId { get; set; }
    }
}